<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$shop_info["sname"]?>_<?=SITE_NAME?>|PaiLeGo.COM</title>
<meta name="keywords" content="<?=$scfg['base']['keywords']?>" />
<meta name="description" content="<?=$scfg['base']['description']?>" />
<script type="text/javascript">
try{document.domain="<?=SITE_DOMAIN?>";}catch (e){};
var __scfg__ = {
	staticUrl:"<?=surl::get("static");?>",
	thisPage:"shop"
};
</script>
<script type="text/javascript" src="<?=surl::get("static");?>shop.js"></script>
</head>
<body>
<? tpl::import('shop/header.s.tpl.php');?>
<div class="fclear"></div>
<? include(TPL_ROOT_DIR.'shop/shop.nav.s.php');?>

<div class="full">
  
  <table width="100%" border="0" cellspacing="0" cellpadding="0" id="shopInfo">
    <tr>
      <td width="20%" align="center" valign="top">
          <img src="<?=shop::img($shop_info["sid"])?>" width="100" height="100" vspace="20" />
          <br />
          <img src="<?=surl::get("static")?>imgs/favorite_btn_02.gif" width="16" height="16" hspace="10" align="absmiddle" />
          <a href="#" target="_blank">收藏本店铺</a>
      </td>
      <td valign="top">
      <ul id="info_urs"></ul>
      </td>
      <td width="50%" valign="top" id="shopNote" align="center">
	  <marquee id="bbs_marquee" direction="up" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="1" height="90" width="360">
      <script type="text/javascript">
	    var summary = <?=json::encode($shop_info["summary"])?>;
		_.r(bbcode2html(summary));
	  </script>
      </marquee>
      </td>
    </tr>
  </table>
  <div id="div3" ></div>  
</div>

<div class="full" id="shopVote">店 主 推 荐</div>

<div id="shopVoteItem" class="full">
  
<table  border="0" cellspacing="0" cellpadding="0" width="100%" height="170">
<tr id="RecommendListTr">
<? foreach($shop_recommend as &$v){
	$url = pct::url($v['gYmd'],$v['gid']);
	$img = pct::img($v['gYmd'],$v['gid']);
	$cSellType  = $v['cSellType'] == 1?"一口价":"拍卖";
?>
<td  width="16%">
<ul name="RecommendItemList" type="manual">
    <li class="shopImg" src="<?=$img[0]?>" href="<?=$url?>"></li>
    <li class="shopTitle"><a href="<?=$url?>" target="_blank"> <?=$v['sTitle']?>  </a></li>
    <li class="shopPrize"><?=$v['dwPrice_bin']?> 元</li>
    <li class="shopSell"><?=$cSellType?></li>
</ul>
</td>
<? }?>
</tr>
</table>

</div>


<div class="full">
  <div id="shopMain">
    <div id="shopLeft">
      <div class="menuHead"><span>店铺类目</span></div>   
         <div id="CategoryListDiv">      
            <ul id='CategoryList'>
            	<li><a href='<?=shop::url($shop_info["urs"])?>'>(查看所有商品)</a></li>
                <? foreach($shop_class as &$v){?>
                <li><a href='<?=shop::url($shop_info["urs"],array("cat"=>$v["cid"]))?>'><?=$v["className"]?></a></li>
                <? }?>
            </ul>
		</div>
      <div class="menuHead" style="margin-top:10px"><span>友情链接</span></div>
      <div id="FriendLinkListDiv">          
       	<ul>         
            <? foreach($shop_friendLink as &$v){?>
            <li><a href='<?=$v["url"]?>' target="_blank"><?=$v["siteName"]?></a></li>
            <? }?>
        </ul>
      </div>       
      <div id="shopOpen">
        <div><a href="<?=surl::get('my')?>index.php?act=sell_open_shop" target="_blank"><img src="<?=surl::get("static")?>imgs/shop.style/shop_open.gif" width="133" height="35" vspace="10" /></a></div>
        <div><a href="http://bbs.pailego.com/viewthread.php?tid=13&extra=page%3D1" target="_blank">新手必读</a></div>
      </div>
    </div>
    <!--商品列表-->
    <a name="item"></a>
    <div id="shopSide">
      <form method="get">
        <ul class="shopMenu" id="shopMenuSide">
          <li id="Menu1" <?=(empty($order)?'class="shopHere"':'')?>><a href="<?=shop::url($shop_info["urs"])?>"><span>所有商品</span></a></li>
          <li id="Menu2" <?=($order=="asc"?'class="shopHere"':'')?>><a href="<?=shop::url($shop_info["urs"],array("order"=>"asc"))?>"><span>新进商品</span></a></li>
          <li id="Menu3" <?=($order=="desc"?'class="shopHere"':'')?>><a href="<?=shop::url($shop_info["urs"],array("order"=>"desc"))?>"><span>即将结束</span></a></li>
          <div class="fclear"></div>
        </ul>
        <div id="shopFind">
          <input name="urs"  id="urs" type="hidden" value="<?=$urs?>">
          <input name="q" type="text" id="q" style="width:156px" value="<?=$q?>">
          <input type="submit" value="店内搜索" >          
        </div>      
        <div> </div>
        
        <div id="Page_Div1">
        	<table align="center" border="0" cellpadding="0" cellspacing="0" height="30">
              <tbody>
                <tr>
                  <td><?=$shop_list["pg"]["str"]?></td>
                  <td align="center"><ul class="page"><?=implode("",$shop_list["pg"]['np'])?></ul></td>
                </tr>
              </tbody>
            </table>
        </div>
        <div id="sideList">   
			<? foreach($shop_list["rs"] as &$v){
                $url = pct::url($v['gYmd'],$v['gid']);
                $img = pct::img($v['gYmd'],$v['gid']);
                $cSellType  = $v['cSellType'] == 1?"一口价":"拍卖";
            ?>
            <ul>
                <li class="shopImg" src="<?=$img[0]?>" href="<?=$url?>"></li>
                <li class="shopTitle"><a href="<?=$url?>" target="_blank"> <?=$v['sTitle']?>  </a></li>
                <li class="shopPrize"><?=$v['dwPrice_bin']?> 元</li>
                <li class="shopSell"><?=$cSellType?></li>
            </ul>
            <? }?>
        </div>
        <div class="fclear"></div>
        <div id="Page_Div2">
        	<table align="center" border="0" cellpadding="0" cellspacing="0" height="30">
              <tbody>
                <tr>
                  <td><?=$shop_list["pg"]["str"]?></td>
                  <td align="center"><ul class="page"><?=implode("",$shop_list["pg"]['np'])?></ul></td>
                </tr>
              </tbody>
            </table>
        </div>     
     </form>
      <!--拍友留言-->
	  <a name="note"></a>
      <ul class="shopMenu" id="shopMenuNote">
        <li class="shopHere"><a href="#note"><span>拍友留言</span></a></li>
        <div class="fclear"></div>
      </ul>
      <div id="html_tem_leaveMsg">
        <div class="loadInfo">正在加载记录数据中,请稍候... :)</div>
      </div>
    </div>
    <div class="fclear"></div>
  </div>
</div>
<script type="text/javascript">
var oUrs     ='<?=$shop_info["urs"]?>';
var shopinfo=function()
{
	(new Json()).load(url.en({Pact:"shopinfo",urs:oUrs},"dwr.php"),"oPLoad.callback_shopinfo");
};
var oPLoad = oPLoad||{};
oPLoad.callback_shopinfo=function(o)
{
	var el = _.e("info_urs");
	var rs = [];
	rs.push('<li>卖家昵称：'+oUrs+'</li>');
	rs.push('<li style="padding-left:60px;"><span align="left"> '+IM(o.im).join(' ')+' </span></li>');
	rs.push('<li>最近登录：'+_.time(o.last_time,1)+'</li>');
	rs.push('<li>卖家信用：<span id="shopUrsCredit"> '+o.saleCredit+' </span></li>');
	rs.push('<li>商品数量：<span id="shopPctCount"> '+o.goods+' </span></li>');
	rs.push('<li>开店时间：'+_.time(o.save_time,1)+'</li>');
	el.innerHTML = rs.join('');
}
shopinfo();
oReview.init({act:"urs",urs:oUrs,div:"html_tem_leaveMsg"});
$("li.shopImg").each(function(){Player.image(this);});
</script>
<? tpl::import('foot.all.tpl.php');?>
</body>
</html>

